#include <myheader_c_plus.h>
using std::vector;
using std::endl;
using std::cout;
template<typename Container>
void display(Container & con)
{
    for(auto & ele : con)
    {
        cout << ele  << " ";
    }
    cout << endl;
}
void test(){
    vector<int> vec;
    vec.push_back(1);
    vec.push_back(1);
    vec.push_back(1);
    auto it = vec.begin();
    ++it;
    vec.insert(it, 100);
    cout << "it = " << *it << endl;
    cout << "capacity = " << vec.capacity() << endl;
    display(vec);
    vec.insert(it, 1000);
    cout << "it = " << *it << endl;
    cout << "capacity = " << vec.capacity() << endl;
    display(vec);

}
int main(int argc, char *argv[])
{
    test();
    return 0;
}

